<script setup lang="ts">
import type { Props, Emits } from './utils/types'

const $props = defineProps<Props>()

const $emit = defineEmits<Emits>()

</script>

<template>
    <div class="dialog-close">
        <div>{{ title }}</div>
        <div class="close" @click="$emit('close')">
            ×
        </div>
    </div>
</template>

<style lang="scss">
.el-dialog {
    padding: 0;
    border-radius: 10px;

    .el-dialog__body {
        padding: 16px;
    }

    .el-dialog__footer {
        padding: 16px;
    }
}

.zuoping-edit.el-dialog {
    .el-dialog__body {
        padding: 16px !important;
        padding-top: 0 !important;
    }
}

.el-dialog__header {
    padding: 0;
}
</style>


<style lang="scss" scoped>
.dialog-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgb(187, 187, 187);
    padding: 4px 20px;
    padding-right: 14px;
    margin-bottom: 20px;

    .close {
        font-size: 24px;
        font-family: 'SOURCEHANSANSCN-EXTRALIGHT';
        cursor: pointer;
        color: #9a9a9a;
    }
}
</style>
